#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright [Gtlions Lai].
# Create Date:
# Update Date:
"""summarization ahout this script.

detail ahout this script

   Class(): summarization about Class
   ...
   function(): summarization about function
   ...
"""
__authors__ = '"Gtlions Lai" <gtlions.l@qq.com>'


import sys
from PyQt4 import QtGui, QtCore


class QuitButton(QtGui.QWidget):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)

        self.setGeometry(300, 300, 300, 250)
        self.setWindowTitle("QuitButton")
        quit = QtGui.QPushButton('close', self)
        quit.setGeometry(10, 10, 60, 35)
        self.connect(quit, QtCore.SIGNAL('clicked()'), QtGui.qApp, QtCore.SLOT('quit()'))
        #self.connect(quit, QtCore.SIGNAL('clicked()'), QtGui.qApp, self.onclick())

if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    quitbutton = QuitButton()
    quitbutton.show()
    sys.exit(app.exec_())